(function(){"use strict";BX.namespace("BX.Landing.UI.Tool");var n=BX.Landing.Utils.isString;var o=BX.Landing.Utils.isEmpty;var i=BX.Landing.Utils.addClass;var p=BX.Landing.Utils.removeClass;var t=BX.Landing.Utils.onCustomEvent;var s=BX.Landing.Utils.proxy;BX.Landing.UI.Tool.Menu=function(p){p.bindElement=p.bindElement||null;p.items=p.items||[];top.BX.PopupMenuWindow.apply(this,[p.id,p.bindElement,p.items,p]);i(this.popupWindow.popupContainer,"landing-ui-popup");if(!o(p.className)&&n(p.className)){i(this.popupWindow.popupContainer,p.className)}this.popupWindow.show=BX.Landing.UI.Tool.Popup.prototype.show.bind(this.popupWindow);this.popupWindow.close=BX.Landing.UI.Tool.Popup.prototype.close.bind(this.popupWindow);if(!top.BX.PopupMenu.Data[p.id]){top.BX.PopupMenu.Data[p.id]=this;t(this,"onPopupMenuDestroy",BX.PopupMenu.onPopupDestroy.bind(BX.PopupMenu))}t(this.popupWindow,"onPopupShow",s(this.onShow,this));t(this.popupWindow,"onPopupClose",s(this.onClose,this));var e=function(){this.close()}.bind(this);BX.Event.bind(window.top.document,"click",e);BX.Event.bind(document,"click",e)};BX.Landing.UI.Tool.Menu.prototype={constructor:BX.Landing.UI.Tool.Menu,__proto__:top.BX.PopupMenuWindow.prototype,onShow:function(){if(this.bindElement){i(this.bindElement,"landing-ui-active")}},onClose:function(){if(this.bindElement){p(this.bindElement,"landing-ui-active")}}}})();
//# sourceMappingURL=menu.map.js